package com.th.supcom.pds.impl.manager.impl;

import java.util.List;
import java.util.Map;

import net.carefx.fc.framework.db.manager.GetSequenceHelper;

import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.th.supcom.pds.domain.pojo.DeptVsDispensary;
import com.th.supcom.pds.impl.dao.DeptVsDispensaryMapper;
import com.th.supcom.pds.impl.manager.DeptVsDispensaryManager;

/**
 * DeptVsDispensary 管理接口实现.
 * 
 * 科室与药房关系配置.
 */
public class DeptVsDispensaryManagerImpl implements DeptVsDispensaryManager
{
    public static final String TAB_DEPT_VS_DISPENSARY = "DEPT_VS_DISPENSARY";

    private DeptVsDispensaryMapper m_deptVsDispensaryMapper;

    /** 序列生成器. */
    private GetSequenceHelper m_getSequenceHelper;

    /**
     * 默认的构造函数.
     */
    public DeptVsDispensaryManagerImpl ()
    {

    }

    /**
     * 获取DeptVsDispensaryMapper.
     * 
     * @return DeptVsDispensaryMapper.
     */
    public DeptVsDispensaryMapper getDeptVsDispensaryMapper ()
    {
        return m_deptVsDispensaryMapper;
    }

    /**
     * 注入DeptVsDispensaryMapper.
     * 
     * @param deptVsDispensaryMapper set deptVsDispensaryMapper.
     */
    public void setDeptVsDispensaryMapper (DeptVsDispensaryMapper deptVsDispensaryMapper)
    {
        m_deptVsDispensaryMapper = deptVsDispensaryMapper;
    }
    

    /**
     * 获取序列.
     * 
     * @return GetSequenceHelper
     */
    public GetSequenceHelper getGetSequenceHelper ()
    {
        return m_getSequenceHelper;
    }

    /**
     * 注入序列.
     * 
     * @param getSequenceHelper getSequenceHelper.
     */
    public void setGetSequenceHelper (GetSequenceHelper getSequenceHelper)
    {
        m_getSequenceHelper = getSequenceHelper;
    }

    @Override
    public DeptVsDispensary getDeptVsDispensaryByID (Long id)
    {
        return m_deptVsDispensaryMapper.getDeptVsDispensaryByID (id);
    }

    @Override
    public Long getDeptVsDispensarySeq ()
    {
        return m_getSequenceHelper.getNextSequenceId (TAB_DEPT_VS_DISPENSARY);
    }

    @Override
    public List <DeptVsDispensary> findDeptVsDispensaryListByExample (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryListByExample (deptVsDispensary);
    }

    @Override
    public int findDeptVsDispensaryCountByExample (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryCountByExample (deptVsDispensary);
    }

    @Override
    public List <DeptVsDispensary> findDeptVsDispensaryListByMap (Map <String, Object> params)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryListByMap (params);
    }

    @Override
    public List <DeptVsDispensary> findDeptVsDispensaryPagingByMap (Map <String, Object> params, Integer offset, Integer limit)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryPagingByMap (new RowBounds (offset, limit), params);
    }

    @Override
    public Integer findDeptVsDispensaryCountByMap (Map <String, Object> params)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryCountByMap (params);
    }

    @Override
    public int modifyDeptVsDispensary (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.modifyDeptVsDispensary (deptVsDispensary);
    }

    @Override
    public int modifyDeptVsDispensaryByExample (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.modifyDeptVsDispensaryByExample (deptVsDispensary);
    }

    @Override
    public int removeDeptVsDispensaryByID (Long id)
    {
        return m_deptVsDispensaryMapper.removeDeptVsDispensaryByID (id);
    }

    @Override
    public int removeDeptVsDispensaryByMap (Map <String, Object> params)
    {
        return m_deptVsDispensaryMapper.removeDeptVsDispensaryByMap (params);
    }

    @Override
    public void addDeptVsDispensary (DeptVsDispensary deptVsDispensary)
    {
        deptVsDispensary.setDeptVsDispensaryId (getDeptVsDispensarySeq ());
        m_deptVsDispensaryMapper.addDeptVsDispensary (deptVsDispensary);
    }

    @Override
    public int modifyDeptVsDispensaryList (List <DeptVsDispensary> list)
    {
        return m_deptVsDispensaryMapper.modifyDeptVsDispensaryList (list);
    }

    @Override
    public List <DeptVsDispensary> findDispenseTypeListByExample (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.findDispenseTypeListByExample (deptVsDispensary);
    }

    @Override
    public List <DeptVsDispensary> findPhamMaterialTypeListByExample (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.findPhamMaterialTypeListByExample (deptVsDispensary);
    }

    @Override
    public List <DeptVsDispensary> findDeptVsDispensaryListByNurseCode (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.findDeptVsDispensaryListByNurseCode (deptVsDispensary);
    }

    @Override
    public int modifyDeptVsDispensaryByDispensary (DeptVsDispensary deptVsDispensary)
    {
        return m_deptVsDispensaryMapper.modifyDeptVsDispensaryByDispensary (deptVsDispensary);
    }
    
    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger (DeptVsDispensaryManagerImpl.class);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}